<h1><?php echo $this->pageTitle = __('Locations List', true); ?></h1>
<div class="index">
	<?php echo $html->link(__('Add new location', true), array('action'=>'admin_add')); ?>
	<table cellpadding="0" cellspacing="0">
	<tr>
		<th><?php echo $paginator->sort(__('Title', true), 'title');?></th>
		<th align="center"><?php echo $paginator->sort(__('Accept images', true), 'accept_image');?></th>
		<th align="center"><?php echo $paginator->sort(__('Accept flash', true), 'accept_flash');?></th>
		<th align="center"><?php echo $paginator->sort(__('Accept HTML', true), 'accept_html');?></th>
		<th align="center"><?php echo $paginator->sort(__('Accept plain', true), 'accept_plain');?></th>
		<th align="center"><?php echo $paginator->sort(__('Width', true), 'width');?></th>
		<th align="center"><?php echo $paginator->sort(__('Height', true), 'height');?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($locations as $location) {
	?>
		<tr<?php if (($i++%2)==0) echo ' class="altrow"'; ?>>
			<td><?php echo h($location['Location']['title']); ?></td>
			<td><?php echo $location['Location']['accept_image']; ?></td>
			<td><?php echo $location['Location']['accept_flash']; ?></td>
			<td><?php echo $location['Location']['accept_html']; ?></td>
			<td><?php echo $location['Location']['accept_plain']; ?></td>
			<td><?php echo $location['Location']['width']; ?></td>
			<td><?php echo $location['Location']['height']; ?></td>
			<td class="actions">
				<?php echo $html->link(__('Edit', true), array('action'=>'admin_edit', $location['Location']['id'])); ?>
				<?php echo $html->link(__('Delete', true), array('action'=>'admin_delete', $location['Location']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $location['Location']['id'])); ?>
			</td>
		</tr>
	<?php
		}
	?>
	</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
</div>